package com.bwie.es.service;

import com.bwie.es.domain.EsShop;
import com.bwie.es.domain.request.EsShopRequest;
import org.dromara.easyes.core.biz.EsPageInfo;

public interface EsService {

    /**
     * 创建索引
     */
    void createIndex();

    /**
     * 添加
     * @param esShop
     */
    void add(EsShop esShop);

    /**
     * 修改
     * @param esShop
     */
    void update(EsShop esShop);

    /**
     * 禁用
     */
    void delete(Long id);

    /**
     * 店铺列表
     * @param request
     * @return
     */
    EsPageInfo<EsShop> pageList(EsShopRequest request);
}
